﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Day0320_练习_Game
{
    class ZB
    {
        //string name;
        public string Name { get; set; }
    }

    class Weapon : ZB
    {
        public int Level { get; set; }
        public float Attack_Power { get; set; }

        public virtual void Attack()
        {
            Console.WriteLine("武器攻击");
        }
    }

    class FaZhang : Weapon
    {
        public override void Attack()
        {
            Console.WriteLine("远程魔法攻击");
        }
    }

    class GongJian : Weapon
    {
        public override void Attack()
        {
            Console.WriteLine("远程物理攻击");
        }
    }

    class ChangJian : Weapon
    {
        public float FangYuLi { get; set; }

        public override void Attack()
        {
            Console.WriteLine("近战物理攻击");
        }
    }

    class FangJu : ZB
    {
        public float FangYuLi { get; set; }
        public int NaiJiuDu { get; set; }

        public void PoSun()
        {
            Console.WriteLine("防具破损");
        }
    }
}
